﻿using System;

namespace AppConfig
{
    public static class ApplicationConfig
    {
        /// <summary>
        /// 网关
        /// </summary>
        public static ApplicationEntity Gateway { get; set; } = new ApplicationEntity()
        {
            ServiceName = "Gateway",
            ServiceZhName = "网关",
            ServiceAddress = "http://10.1.1.12:5007/"
        };
        /// <summary>
        /// 服务
        /// </summary>
        public static ApplicationEntity[] ApplicationEntitys { get; set; } = new ApplicationEntity[] {
            new ApplicationEntity()
            {
                ServiceName = "system",
                ServiceZhName = "系统接口服务" ,
                ServiceAddress = "http://10.1.1.12:5006/"
            }           
        };
    }
    /// <summary>
    /// 服务描述
    /// </summary>
    public class ApplicationEntity 
    {
        /// <summary>
        /// 服务名称（英文）和consul注册名称一直
        /// </summary>
        public string ServiceName { get; set; }
        /// <summary>
        /// 服务名称（中文）
        /// </summary>
        public string ServiceZhName { get; set; }
        /// <summary>
        /// 配置地址
        /// </summary>
        public string ServiceAddress { get; set; }
    }
}
